package com.sloan.community.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Author: yaosj
 * @CreateTime: 2024-12-23
 */
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoticeDTO {

    private String msg;

    private Long formUserId;

    private Long toUserId;

    public NoticeDTO copyUpdateMsg(String msg) {
        NoticeDTO noticeDTO = new NoticeDTO();
        noticeDTO.setFormUserId(this.getFormUserId());
        noticeDTO.setToUserId(this.getToUserId());
        noticeDTO.setMsg(msg);
        return noticeDTO;
    }
}
